package ontocompo.fractalcomponentmanager.serializable;

import java.io.Serializable;
import java.util.ArrayList;

import ontocompo.fractalcomponentmanager.api.UIElementItf;
import ontocompo.fractalcomponentmanager.api.WebApplicationItf;

public class WebApplicationSerializable implements WebApplicationItf, Serializable {
	private static final long serialVersionUID = 1L;
	
	private String appId;
	private String name;
	private String htmlInterface;
	private ArrayList<String> selectableUIElementsIds;
	private ArrayList<String> selectedUIElementsIds;
	private ArrayList<UIElementItf> selectedUIElementsIdsAndHtml;
	private ArrayList<UIElementItf> selectedUIElementsForSubstitutionHtmlIds;
	
	public WebApplicationSerializable(String appId, String name, String htmlInterface, ArrayList<String> selectableUIElementsIds, ArrayList<String> selectedUIElementsIds, ArrayList<UIElementItf> selectedUIElementsIdsAndHtml, ArrayList<UIElementItf> selectedUIElementsForSubstitutionHtmlIds) {
		this.appId = appId;
		this.name = name;
		this.htmlInterface = htmlInterface;
		this.selectableUIElementsIds = selectableUIElementsIds;
		this.selectedUIElementsIds = selectedUIElementsIds;
		this.selectedUIElementsIdsAndHtml = selectedUIElementsIdsAndHtml;
		this.selectedUIElementsForSubstitutionHtmlIds = selectedUIElementsForSubstitutionHtmlIds;
	}
	
	@Override
	public String getName() {
		return this.name;
	}
	
	@Override
	public String getAppId() {
		return this.appId;
	}

	@Override
	public String getHTMLInterface() {
		return this.htmlInterface;
	}

	@Override
	public ArrayList<String> getSelectableUIElementsIds() {
		return this.selectableUIElementsIds;
	}
	
	@Override
	public ArrayList<String> getSelectedUIElementsIds() {
		return this.selectedUIElementsIds;
	}

	@Override
	public ArrayList<UIElementItf> getSelectedUIElementsIdsAndHtml() {
		return this.selectedUIElementsIdsAndHtml;
	}

	@Override
	public ArrayList<UIElementItf> getSelectedUIElementsForSubstitutionsHtmlIds() {
		return this.selectedUIElementsForSubstitutionHtmlIds;
	}
	
	
}
